from typing import List

from fastapi import Form
from pydantic import BaseModel

headers = {
    "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9",
    "Host": "paper.cntheory.com",
    # 'Accept-Encoding': 'gzip, deflate',
    # 'Accept-Language': 'zh-CN,zh;q=0.9',
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/68.0.3440.106 Safari/537.36'
}


class UpdateHtml(BaseModel):
    cid: str
    keyid: str
    html: str
    down_date: str


class XueXiShiBaoSave2(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''


class XueXiShiBaoSave4(BaseModel):
    rawid: str = ''
    html: str = ''
    jsondicts: dict = dict()
    downdate: str = ''


class PaperXueXiShiBaoSaveMonth(BaseModel):
    periodMonth: str = ''
    html: str = ''
    downdate: str = ''


class PaperXueXiShiBaoDown(BaseModel):
    periodDate: str = ''
    url: str = ''
    marks: List[str] = []
    encode: str = ''


class PaperXueXiShiBaoGetDay(BaseModel):
    periodMonth: str = ''
    marks: List[str] = []


class XueXiShiBaoParse4(BaseModel):
    downdate: str = ''
    jsondicts: dict = dict()
    html: str = ''
    rawid: str = ''
    batch: str = ''


class XueXiShiBaoParseHtmlModel(BaseModel):
    periodDate: str = ''
    html: str = ''


class PaperXueXiShiBaoParseDays(BaseModel):
    html: str = ''


class XueXiShiBaoParse2(BaseModel):
    periodDate: str = ''
    html: str = ''


class XueXiShiBaoParse3(BaseModel):
    periodDate: str = ''
    html: str = ''


class XueXiShiBaoSave3(BaseModel):
    periodDate: str = ''
    html: str = ''
    url: str = ''
    years: str = ''
    moths: str = ''
    downdate: str = ''
    page: str = ''
    rawid_page: str = ''


class XueXiShiBaoParseSave4(BaseModel):
    djson: dict = dict()
